<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QtWebApp: stefanfrings::HttpCookie Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QtWebApp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classstefanfrings_1_1HttpCookie.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classstefanfrings_1_1HttpCookie-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">stefanfrings::HttpCookie Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>HTTP cookie as defined in RFC 2109.  
 <a href="classstefanfrings_1_1HttpCookie.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="httpcookie_8h_source.html">httpcookie.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acd5da17724e0fdee1ea706214f744d32"><td class="memItemLeft" align="right" valign="top"><a id="acd5da17724e0fdee1ea706214f744d32"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#acd5da17724e0fdee1ea706214f744d32">HttpCookie</a> ()</td></tr>
<tr class="memdesc:acd5da17724e0fdee1ea706214f744d32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an empty cookie. <br /></td></tr>
<tr class="separator:acd5da17724e0fdee1ea706214f744d32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30c428edcd59c5cf6a5631188d7c0a63"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a30c428edcd59c5cf6a5631188d7c0a63">HttpCookie</a> (const QByteArray name, const QByteArray value, const int maxAge, const QByteArray path=&quot;/&quot;, const QByteArray comment=QByteArray(), const QByteArray domain=QByteArray(), const bool secure=false, const bool httpOnly=false, const QByteArray sameSite=QByteArray())</td></tr>
<tr class="memdesc:a30c428edcd59c5cf6a5631188d7c0a63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a cookie and set name/value pair.  <a href="classstefanfrings_1_1HttpCookie.html#a30c428edcd59c5cf6a5631188d7c0a63">More...</a><br /></td></tr>
<tr class="separator:a30c428edcd59c5cf6a5631188d7c0a63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07a3638faff8669808c9eb3267bc4d7c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a07a3638faff8669808c9eb3267bc4d7c">HttpCookie</a> (const QByteArray source)</td></tr>
<tr class="memdesc:a07a3638faff8669808c9eb3267bc4d7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a cookie from a string.  <a href="classstefanfrings_1_1HttpCookie.html#a07a3638faff8669808c9eb3267bc4d7c">More...</a><br /></td></tr>
<tr class="separator:a07a3638faff8669808c9eb3267bc4d7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef937847dbebf7290e94b94afbb8f9a1"><td class="memItemLeft" align="right" valign="top"><a id="aef937847dbebf7290e94b94afbb8f9a1"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#aef937847dbebf7290e94b94afbb8f9a1">toByteArray</a> () const</td></tr>
<tr class="memdesc:aef937847dbebf7290e94b94afbb8f9a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert this cookie to a string that may be used in a Set-Cookie header. <br /></td></tr>
<tr class="separator:aef937847dbebf7290e94b94afbb8f9a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a209cfdd43a29ded9a93ac6ad3e4f75ef"><td class="memItemLeft" align="right" valign="top"><a id="a209cfdd43a29ded9a93ac6ad3e4f75ef"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a209cfdd43a29ded9a93ac6ad3e4f75ef">setName</a> (const QByteArray name)</td></tr>
<tr class="memdesc:a209cfdd43a29ded9a93ac6ad3e4f75ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the name of this cookie. <br /></td></tr>
<tr class="separator:a209cfdd43a29ded9a93ac6ad3e4f75ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b931091d1d667895a117e86b301d101"><td class="memItemLeft" align="right" valign="top"><a id="a5b931091d1d667895a117e86b301d101"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a5b931091d1d667895a117e86b301d101">setValue</a> (const QByteArray value)</td></tr>
<tr class="memdesc:a5b931091d1d667895a117e86b301d101"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value of this cookie. <br /></td></tr>
<tr class="separator:a5b931091d1d667895a117e86b301d101"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51b8f8e7fcb77f6f9d9750545cd2e98b"><td class="memItemLeft" align="right" valign="top"><a id="a51b8f8e7fcb77f6f9d9750545cd2e98b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a51b8f8e7fcb77f6f9d9750545cd2e98b">setComment</a> (const QByteArray comment)</td></tr>
<tr class="memdesc:a51b8f8e7fcb77f6f9d9750545cd2e98b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the comment of this cookie. <br /></td></tr>
<tr class="separator:a51b8f8e7fcb77f6f9d9750545cd2e98b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ca88be725bee61644b546807f62ee7f"><td class="memItemLeft" align="right" valign="top"><a id="a8ca88be725bee61644b546807f62ee7f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a8ca88be725bee61644b546807f62ee7f">setDomain</a> (const QByteArray domain)</td></tr>
<tr class="memdesc:a8ca88be725bee61644b546807f62ee7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the domain of this cookie. <br /></td></tr>
<tr class="separator:a8ca88be725bee61644b546807f62ee7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae17c01f48d8efbd553e954e0cb8a06b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#ae17c01f48d8efbd553e954e0cb8a06b0">setMaxAge</a> (const int maxAge)</td></tr>
<tr class="memdesc:ae17c01f48d8efbd553e954e0cb8a06b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the maximum age of this cookie in seconds.  <a href="classstefanfrings_1_1HttpCookie.html#ae17c01f48d8efbd553e954e0cb8a06b0">More...</a><br /></td></tr>
<tr class="separator:ae17c01f48d8efbd553e954e0cb8a06b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e9cdfa3b356d95d9accb5ed8f5745e9"><td class="memItemLeft" align="right" valign="top"><a id="a9e9cdfa3b356d95d9accb5ed8f5745e9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a9e9cdfa3b356d95d9accb5ed8f5745e9">setPath</a> (const QByteArray path)</td></tr>
<tr class="memdesc:a9e9cdfa3b356d95d9accb5ed8f5745e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the path for that the cookie will be sent, default="/" which means the whole domain. <br /></td></tr>
<tr class="separator:a9e9cdfa3b356d95d9accb5ed8f5745e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92a304128210efa82e317ee26fd041c5"><td class="memItemLeft" align="right" valign="top"><a id="a92a304128210efa82e317ee26fd041c5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a92a304128210efa82e317ee26fd041c5">setSecure</a> (const bool secure)</td></tr>
<tr class="memdesc:a92a304128210efa82e317ee26fd041c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set secure mode, so that the cookie will be sent by the browser to the server only on secure connections. <br /></td></tr>
<tr class="separator:a92a304128210efa82e317ee26fd041c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1fa9c390bc258599680e06b53902273"><td class="memItemLeft" align="right" valign="top"><a id="ae1fa9c390bc258599680e06b53902273"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#ae1fa9c390bc258599680e06b53902273">setHttpOnly</a> (const bool httpOnly)</td></tr>
<tr class="memdesc:ae1fa9c390bc258599680e06b53902273"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set HTTP-only mode, so that the browser does not allow client-side scripts to access the cookie. <br /></td></tr>
<tr class="separator:ae1fa9c390bc258599680e06b53902273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ed5e5584dac011d1c32a761c2e3e8b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a2ed5e5584dac011d1c32a761c2e3e8b6">setSameSite</a> (const QByteArray sameSite)</td></tr>
<tr class="memdesc:a2ed5e5584dac011d1c32a761c2e3e8b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set same-site mode, so that the browser does not allow other web sites to access the cookie.  <a href="classstefanfrings_1_1HttpCookie.html#a2ed5e5584dac011d1c32a761c2e3e8b6">More...</a><br /></td></tr>
<tr class="separator:a2ed5e5584dac011d1c32a761c2e3e8b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abecd0373e90e3701e82bb4dc630c54a7"><td class="memItemLeft" align="right" valign="top"><a id="abecd0373e90e3701e82bb4dc630c54a7"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#abecd0373e90e3701e82bb4dc630c54a7">getName</a> () const</td></tr>
<tr class="memdesc:abecd0373e90e3701e82bb4dc630c54a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of this cookie. <br /></td></tr>
<tr class="separator:abecd0373e90e3701e82bb4dc630c54a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04d3cdafe9c7e5f9068816abf33aa4a9"><td class="memItemLeft" align="right" valign="top"><a id="a04d3cdafe9c7e5f9068816abf33aa4a9"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a04d3cdafe9c7e5f9068816abf33aa4a9">getValue</a> () const</td></tr>
<tr class="memdesc:a04d3cdafe9c7e5f9068816abf33aa4a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the value of this cookie. <br /></td></tr>
<tr class="separator:a04d3cdafe9c7e5f9068816abf33aa4a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad48e447c1d4dfbed9e81713016ca0531"><td class="memItemLeft" align="right" valign="top"><a id="ad48e447c1d4dfbed9e81713016ca0531"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#ad48e447c1d4dfbed9e81713016ca0531">getComment</a> () const</td></tr>
<tr class="memdesc:ad48e447c1d4dfbed9e81713016ca0531"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the comment of this cookie. <br /></td></tr>
<tr class="separator:ad48e447c1d4dfbed9e81713016ca0531"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeaafc0d8651b07c94d1ed247a4e23dff"><td class="memItemLeft" align="right" valign="top"><a id="aeaafc0d8651b07c94d1ed247a4e23dff"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#aeaafc0d8651b07c94d1ed247a4e23dff">getDomain</a> () const</td></tr>
<tr class="memdesc:aeaafc0d8651b07c94d1ed247a4e23dff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the domain of this cookie. <br /></td></tr>
<tr class="separator:aeaafc0d8651b07c94d1ed247a4e23dff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a55c75cb4220b303cbed4713f538995"><td class="memItemLeft" align="right" valign="top"><a id="a3a55c75cb4220b303cbed4713f538995"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a3a55c75cb4220b303cbed4713f538995">getMaxAge</a> () const</td></tr>
<tr class="memdesc:a3a55c75cb4220b303cbed4713f538995"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the maximum age of this cookie in seconds. <br /></td></tr>
<tr class="separator:a3a55c75cb4220b303cbed4713f538995"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3796862a6c50124eb5c987dd617a097c"><td class="memItemLeft" align="right" valign="top"><a id="a3796862a6c50124eb5c987dd617a097c"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a3796862a6c50124eb5c987dd617a097c">getPath</a> () const</td></tr>
<tr class="memdesc:a3796862a6c50124eb5c987dd617a097c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the path of this cookie. <br /></td></tr>
<tr class="separator:a3796862a6c50124eb5c987dd617a097c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a270cd78805263b5ed80f4e3354caf4e4"><td class="memItemLeft" align="right" valign="top"><a id="a270cd78805263b5ed80f4e3354caf4e4"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a270cd78805263b5ed80f4e3354caf4e4">getSecure</a> () const</td></tr>
<tr class="memdesc:a270cd78805263b5ed80f4e3354caf4e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the secure flag of this cookie. <br /></td></tr>
<tr class="separator:a270cd78805263b5ed80f4e3354caf4e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab465f5485b1115ba8ead0809fcb71510"><td class="memItemLeft" align="right" valign="top"><a id="ab465f5485b1115ba8ead0809fcb71510"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#ab465f5485b1115ba8ead0809fcb71510">getHttpOnly</a> () const</td></tr>
<tr class="memdesc:ab465f5485b1115ba8ead0809fcb71510"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the HTTP-only flag of this cookie. <br /></td></tr>
<tr class="separator:ab465f5485b1115ba8ead0809fcb71510"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99c278181d44fc1b492e583178e3b564"><td class="memItemLeft" align="right" valign="top"><a id="a99c278181d44fc1b492e583178e3b564"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a99c278181d44fc1b492e583178e3b564">getSameSite</a> () const</td></tr>
<tr class="memdesc:a99c278181d44fc1b492e583178e3b564"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the same-site flag of this cookie. <br /></td></tr>
<tr class="separator:a99c278181d44fc1b492e583178e3b564"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac390582430915aa5570c6a397f20210d"><td class="memItemLeft" align="right" valign="top"><a id="ac390582430915aa5570c6a397f20210d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#ac390582430915aa5570c6a397f20210d">getVersion</a> () const</td></tr>
<tr class="memdesc:ac390582430915aa5570c6a397f20210d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns always 1. <br /></td></tr>
<tr class="separator:ac390582430915aa5570c6a397f20210d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a90009f1b886162d08cc7ead31d6d8209"><td class="memItemLeft" align="right" valign="top">static QList&lt; QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classstefanfrings_1_1HttpCookie.html#a90009f1b886162d08cc7ead31d6d8209">splitCSV</a> (const QByteArray source)</td></tr>
<tr class="memdesc:a90009f1b886162d08cc7ead31d6d8209"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split a string list into parts, where each part is delimited by semicolon.  <a href="classstefanfrings_1_1HttpCookie.html#a90009f1b886162d08cc7ead31d6d8209">More...</a><br /></td></tr>
<tr class="separator:a90009f1b886162d08cc7ead31d6d8209"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>HTTP cookie as defined in RFC 2109. </p>
<p>Supports some additional attributes of RFC6265bis. </p>

<p class="definition">Definition at line <a class="el" href="httpcookie_8h_source.html#l00020">20</a> of file <a class="el" href="httpcookie_8h_source.html">httpcookie.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a30c428edcd59c5cf6a5631188d7c0a63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30c428edcd59c5cf6a5631188d7c0a63">&#9670;&nbsp;</a></span>HttpCookie() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpCookie::HttpCookie </td>
          <td>(</td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>maxAge</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>path</em> = <code>&quot;/&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>comment</em> = <code>QByteArray()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>domain</em> = <code>QByteArray()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>secure</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>httpOnly</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>sameSite</em> = <code>QByteArray()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a cookie and set name/value pair. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>name of the cookie </td></tr>
    <tr><td class="paramname">value</td><td>value of the cookie </td></tr>
    <tr><td class="paramname">maxAge</td><td>maximum age of the cookie in seconds. 0=discard immediately </td></tr>
    <tr><td class="paramname">path</td><td>Path for that the cookie will be sent, default="/" which means the whole domain </td></tr>
    <tr><td class="paramname">comment</td><td>Optional comment, may be displayed by the web browser somewhere </td></tr>
    <tr><td class="paramname">domain</td><td>Optional domain for that the cookie will be sent. Defaults to the current domain </td></tr>
    <tr><td class="paramname">secure</td><td>If true, the cookie will be sent by the browser to the server only on secure connections </td></tr>
    <tr><td class="paramname">httpOnly</td><td>If true, the browser does not allow client-side scripts to access the cookie </td></tr>
    <tr><td class="paramname">sameSite</td><td>Declare if the cookie can only be read by the same site, which is a stronger restriction than the domain. Allowed values: "Lax" and "Strict". </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="httpcookie_8cpp_source.html#l00017">17</a> of file <a class="el" href="httpcookie_8cpp_source.html">httpcookie.cpp</a>.</p>

</div>
</div>
<a id="a07a3638faff8669808c9eb3267bc4d7c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07a3638faff8669808c9eb3267bc4d7c">&#9670;&nbsp;</a></span>HttpCookie() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">HttpCookie::HttpCookie </td>
          <td>(</td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a cookie from a string. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">source</td><td>String as received in a HTTP Cookie2 header. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="httpcookie_8cpp_source.html#l00033">33</a> of file <a class="el" href="httpcookie_8cpp_source.html">httpcookie.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae17c01f48d8efbd553e954e0cb8a06b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae17c01f48d8efbd553e954e0cb8a06b0">&#9670;&nbsp;</a></span>setMaxAge()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HttpCookie::setMaxAge </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>maxAge</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the maximum age of this cookie in seconds. </p>
<p>0=discard immediately </p>

<p class="definition">Definition at line <a class="el" href="httpcookie_8cpp_source.html#l00165">165</a> of file <a class="el" href="httpcookie_8cpp_source.html">httpcookie.cpp</a>.</p>

</div>
</div>
<a id="a2ed5e5584dac011d1c32a761c2e3e8b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ed5e5584dac011d1c32a761c2e3e8b6">&#9670;&nbsp;</a></span>setSameSite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void HttpCookie::setSameSite </td>
          <td>(</td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>sameSite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set same-site mode, so that the browser does not allow other web sites to access the cookie. </p>
<p>Allowed values: "Lax" and "Strict". </p>

<p class="definition">Definition at line <a class="el" href="httpcookie_8cpp_source.html#l00185">185</a> of file <a class="el" href="httpcookie_8cpp_source.html">httpcookie.cpp</a>.</p>

</div>
</div>
<a id="a90009f1b886162d08cc7ead31d6d8209"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90009f1b886162d08cc7ead31d6d8209">&#9670;&nbsp;</a></span>splitCSV()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; QByteArray &gt; HttpCookie::splitCSV </td>
          <td>(</td>
          <td class="paramtype">const QByteArray&#160;</td>
          <td class="paramname"><em>source</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Split a string list into parts, where each part is delimited by semicolon. </p>
<p>Semicolons within double quotes are skipped. Double quotes are removed. </p>

<p class="definition">Definition at line <a class="el" href="httpcookie_8cpp_source.html#l00240">240</a> of file <a class="el" href="httpcookie_8cpp_source.html">httpcookie.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>httpserver/<a class="el" href="httpcookie_8h_source.html">httpcookie.h</a></li>
<li>httpserver/<a class="el" href="httpcookie_8cpp_source.html">httpcookie.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>stefanfrings</b></li><li class="navelem"><a class="el" href="classstefanfrings_1_1HttpCookie.html">HttpCookie</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
